package com.swp.oa.sys.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.swp.oa.sys.pojo.Role;
import com.swp.oa.sys.pojo.RoleExample;


public interface IRoleDao {
    int countByExample(RoleExample example);

    int deleteByExample(RoleExample example);

    int deleteByPrimaryKey(String roleid);

    int insert(Role record);

    int insertSelective(Role record);

    List<Role> selectByExampleWithBLOBs(RoleExample example);

    List<Role> selectByExample(RoleExample example);

    Role selectByPrimaryKey(String roleid);

    int updateByExampleSelective(@Param("record") Role record, @Param("example") RoleExample example);

    int updateByExampleWithBLOBs(@Param("record") Role record, @Param("example") RoleExample example);

    int updateByExample(@Param("record") Role record, @Param("example") RoleExample example);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKeyWithBLOBs(Role record);

    int updateByPrimaryKey(Role record);
    
    List<Role> selectAllList();
    
    List<Role> selectAllListWithBLOBs();
    
    Role selectByUserId(String userid);
    
}